package com.chuqiyun.authorization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 账单(Bill)表实体类
 *
 * @author mryunqi
 * @since 2023-04-19 17:06:37
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "Bill")
@Data
public class Bill extends Model<Bill> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //用户唯一UUID
    private String userUuid;
    //订单编号
    private String orderId;
    //回调订单编号
    private String outOrderId;
    //支付方式
    private String paymentType;
    //金额
    private Double money;
    //余额
    private Double balance;
    //支付状态（0=未支付，1=已支付，2=已取消）
    private Integer state;
    //创建时间
    private Long createDate;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    }

